<template>
  <div id="header">
    <div class="log-box">
      <a href="#" class="log-link">
        <h1 style="display:none">https://pearl.finance/</h1>
      </a>
    </div>
    <div class="nav-box">
      <ul>
        <li>
          <router-link to="/home" active-class="active" exact>首页</router-link>
        </li>
        <li>
          <router-link to="/farm" active-class="active">农场</router-link>
        </li>
        <li>
          <router-link to="/faq" active-class="active">常见问题</router-link>
        </li>
        <li>
          <router-link to="/vault" active-class="active">金库</router-link>
        </li>
        <li>
          <router-link to="/rules" active-class="active">规则</router-link>
        </li>
      </ul>
    </div>
    <div class="mine-language-box">
      <div class="my-wallet-box">我的钱包</div>
      <div class="LangSwitcher-box">
        <span>语言</span>
        <span class="english"></span>
        <span class="chines"></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.active {
  color: #d1004b !important;
}
#header {
  width: 100%;
  display: flex;
  height: 80px;
  // padding-top: 10px;
  max-width: 1200px;
  margin: 0 auto;

  .log-box {
    flex: 1;
    height: 100%;
    // background: red;
    .log-link {
      display: block;
      width: 40px;
      height: 40px;
      background: url('../../assets/images/log.svg') no-repeat;
      transform: translateY(50%);
    }
  }
  .nav-box {
    flex: 2;
    height: 100%;
    // background: pink;
    display: flex;
    ul {
      padding: 0;
      display: flex;
      margin: auto;
      li {
        padding: 0 15px;
        a {
          font-weight: 700;
          font-size: 16px;
          color: #aa8592;
        }
      }
    }
  }
  .mine-language-box {
    flex: 1;
    height: 100%;
    // background: orange;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .my-wallet-box {
      height: 36px;
      padding: 0 15px;
      border-radius: 12px;
      color: #d1004b;
      text-align: center;
      line-height: 36px;
      background-color: #f0e7ea;
      box-shadow: 4px 4px 8px #e2cfd5, -8px -8px 16px #f7f2f4;
      margin-right: 20px;
      font-size: 14px;
      font-weight: 700;
    }
    .my-wallet-box:hover {
      background: #f7f2f4;
    }
    .LangSwitcher-box {
      & > span:nth-of-type(1) {
        color: #aa8592;
        font-size: 12px;
        margin-right: 10px;
        display: inline-block;
        vertical-align: text-top;
      }
      .english,
      .chines {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 10px;
      }
      .english {
        background: url('../../assets/images/english.png') no-repeat center;
        background-size: contain;
      }
      .chines {
        background: url('../../assets/images/chines.png') no-repeat center;
        background-size: cover;
      }
    }
  }
}
</style>
